package io.github.xbeeant.eoffice.model;

import io.github.xbeeant.core.BaseModelObject;
import java.io.Serializable;

/**
 * 模板列表
 */
public class DocTemplate extends BaseModelObject<Long> implements Serializable {

    /**
     * 模板ID
     */
    private Long tid;

    /**
     * 模板名称
     */
    private String title;

    /**
     * 模板附件ID
     */
    private Long aid;

    /**
     * 模板封面ID
     */
    private Long coverAid;

    /**
     * 模板分类ID
     */
    private Long cid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table eoffice_doc_template
     *
     * @mbg.generated Sat Jul 10 16:33:18 CST 2021
     */
    private static final long serialVersionUID = 1L;

    /**
     * get field 模板ID
     * @return tid 模板ID
     */
    public Long getTid() {
        return tid;
    }

    /**
     * set filed 模板ID
     * @param tid the value for 模板ID
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * get field 模板名称
     * @return title 模板名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * set filed 模板名称
     * @param title the value for 模板名称
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * get field 模板附件ID
     * @return aid 模板附件ID
     */
    public Long getAid() {
        return aid;
    }

    /**
     * set filed 模板附件ID
     * @param aid the value for 模板附件ID
     */
    public void setAid(Long aid) {
        this.aid = aid;
    }

    /**
     * get field 模板封面ID
     * @return coverAid 模板封面ID
     */
    public Long getCoverAid() {
        return coverAid;
    }

    /**
     * set filed 模板封面ID
     * @param coverAid the value for 模板封面ID
     */
    public void setCoverAid(Long coverAid) {
        this.coverAid = coverAid;
    }

    /**
     * get field 模板分类ID
     * @return cid 模板分类ID
     */
    public Long getCid() {
        return cid;
    }

    /**
     * set filed 模板分类ID
     * @param cid the value for 模板分类ID
     */
    public void setCid(Long cid) {
        this.cid = cid;
    }

    @Override
    public Long valueOfKey() {
        return tid;
    }

    @Override
    public void assignKeyValue(Long value) {
        this.tid = value;
    }

    /**
     * 是否隐私
     */
    private Boolean isPrivate;

    /**
     * get field 是否隐私
     * @return isPrivate 是否隐私
     */
    public Boolean getIsPrivate() {
        return isPrivate;
    }

    /**
     * set filed 是否隐私
     * @param isPrivate the value for 是否隐私
     */
    public void setIsPrivate(Boolean isPrivate) {
        this.isPrivate = isPrivate;
    }
}
